package outPutStreamTest;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author wang'ji'cheng
 * @date 2025/8/3
 */
public class InputStreamDemo {
    public static void main(String[] args) throws IOException {

        FileInputStream inputStream = new FileInputStream("io\\src\\main\\resources\\a.txt");
        int b;
        while ((b=inputStream.read())!=-1){
            System.out.println((char)b);
        }
        inputStream.close();

    }
}
